package cn.chenmixuexi.config;

import cn.chenmixuexi.protocol.serializer.JSONSerializer;
import cn.chenmixuexi.protocol.serializer.Serializer;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

@Configuration
@ComponentScan("cn.chenmixuexi")
public class ClientConfig {

    @Bean
    public Serializer serializer(){
        return new JSONSerializer();
    }

}
